
package com.example.filetransfer.publicsource.fileutils;


public class MyFile implements Comparable<MyFile> {
    private String filePath;
    private String lastChanged;

    public MyFile(String filePath, String lastChanged) {
        this.lastChanged = lastChanged;
        this.filePath = filePath;
    }

    public String getFilePath() {
        return filePath;
    }

    public String getLastChanged() {
        return lastChanged;
    }

    @Override
    public String toString() {
        return filePath + " update:" + lastChanged;
    }

    @Override
    public int compareTo(MyFile compare) {
        return filePath.compareTo(compare.filePath);
    }

}
